
#include <stdio.h>
#include "module.h"
#include "timer_list.h"

#define light_while(x)
#define light_return {MODULE *md = (MODULE *)arg;\
          md->state = STEP_CLOSE;\
        }

int test_timer(void *arg)
{
  
}

int test_init()
{
   printf("test_init\r\n");
   
   timer_create(test_timer, 0, 1000, 1);
}


extern void Delayms(unsigned long nTime);

int test_run(void *arg)
{
    static MSG_t msg;
    
    
    while (get_msg(arg, &msg) >0)
    {
        printf("form[%d], msg addr[%x], msg len %d\r\n", msg.from, msg.pMSG, msg.MsgLen);
   
        
        
    }
    
}
 
int test_close() 
{
    printf("test_close\r\n");
}

module_init(test)
 


